package com.mgz;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MiaoGuoZhu
 * @date 2018/5/8 10:00
 */
@RestController
public class ClientController {

    @Value("${server.port}")
    String port;
    @RequestMapping("/info")
    public String showNameAndPort(@RequestParam String name) {
        return "This client name is "+name+",his port is "+ port;
    }
}
